<?php
/**
 * Created by PhpStorm.
 * User: hebidu
 * Date: 15/11/7
 * Time: 14:07
 */

namespace Test\Controller;


use Admin\Api\MemberApi;
use Common\Api\BoyeServiceApi;
use Think\Controller;
use Uclient\Api\UserApi;

class TestMeituController extends Controller{

    public function index(){
        $service = new BoyeServiceApi();
//        if(IS_POST){
////            '@'.realpath('./mypic.png').';type=image/png'
//            dump($_FILES['image']);
//            $image = $_FILES['image'];
//
//            $data = array(
//                'type'=>'avatar',
//                'uid'=>33,
//                'image'=>'@'.($image['tmp_name'].'.'.$image['type']).';type='.$image['type'],
//            );
//
//            $result = $service->callRemote("File/upload",$data);
//            dump($result);
//        }
        $this->assign('access_token',$service->getAccessToken());
        $this->display();
    }

    protected $Accept_Type = array('avatar','gallery','other');



}